package com.mc.moring.netconfig

import com.mc.moring.bean.TestBean
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Streaming

/**
 * <pre>
 *     author : kuang
 *     time   : 2023/11/29
 *     desc   :
 *     version: 1.0
 * </pre>
 */
interface ApiLoginServer {

    @GET("posts")
    suspend fun test(): List<TestBean>

    @POST("/security_manvtl/getWebLinkConfig")
    suspend fun getWebLink():ResponseBody


    @POST("/security_manvtl/loginBySmsCode")
    suspend fun loginByCode(): ResponseBody

    @POST("posts")
    suspend fun forgotPassword(): ResponseBody

    @POST("/remote/security_manvtl/register")
    suspend fun accountZiLiPageRegister(@Body string: RequestBody): Response<ResponseBody>


    @POST("/remote/security_manvtl/getSmsCode")
    suspend fun getZiLiPageCode(@Body string: RequestBody): Response<ResponseBody>


    @Streaming
    @POST("/remote/captcha_manvtl/getCaptcha")
    suspend fun getZiLiPageCaptcha(@Body string: RequestBody): Response<ResponseBody>


    @POST("/remote/security_manvtl/initDeviceSeed")
    suspend fun initZiLiPageDeviceSeed(@Body string: RequestBody): Response<ResponseBody>


    @POST("/remote/security_manvtl/checkMobileRegister")
    suspend fun checkZiLiPageMobileRegister(@Body string: RequestBody): Response<ResponseBody>

    @POST("/tifi_slice/loanSecurity_manvtl/getConfigInfoByAppId")
    suspend fun getZiLiPageConfigInfoByAppId(@Body string: RequestBody): Response<ResponseBody>


    @POST("/remote/security_manvtl/verifySmsCodeForOTP")
    suspend fun verifyZiLiPageCodeForOTP(@Body string: RequestBody): Response<ResponseBody>

    @POST("/remote/security_manvtl/loginBySmsCode")
    suspend fun loginByCode(@Body string: RequestBody): Response<ResponseBody>


    @POST("/security_manvtl/resetPassword")
    suspend fun resetPassword(@Body string: RequestBody): Response<ResponseBody>


    @POST("/remote/security_manvtl/login")
    suspend fun getZiLiPagesecurityLogin(@Body string: RequestBody): Response<ResponseBody>


    @POST("/security_manvtl/resetPasswd")
    suspend fun resetPasswd(): ResponseBody


    @POST("/remote/security_manvtl/resetPassword")
    suspend fun resetLoginPassword(@Body string: RequestBody): Response<ResponseBody>














}